﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class GreenBlog_blog_cweizhong : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {

        if (Membership.ValidateUser(txtusrname.Text.Trim(), txtpwd.Text.Trim()))
        {
            //        protected void Login2_Authenticate(object sender, AuthenticateEventArgs e)
            //e.Authenticated = true;
            FormsAuthentication.RedirectFromLoginPage(txtusrname.Text, true);
            //来自:http://www.2ed.cn/Article-111-15374.shtml
            string zxdpurl0 = "../main_temp.aspx";
            Response.Redirect(zxdpurl0);

        }
        else
        {
            //Response.Write("<script language=javascript>alert('用户名或密码输入错误,请重新输入.......');if(opener!=null){opener.location.reload();window.close();}</script>");
        }

        //Server.Transfer("index_temp.aspx",true);

    }
}
